package collection;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ArrayTolestDemo {
    public static void main(String[] args) {
        String[] array = {"one","two","three"};
        System.out.println(Arrays.toString(array));
        List<String> list = Arrays.asList(array);
        System.out.println(list);
        list.set(2,"four");
        System.out.println(Arrays.toString(array));
        List<String> list1 = new ArrayList<>();
    }
}
